import { fetch } from './api'
// 在线学习资料
let _typelist = (name = '', pageIndex = 0, pageSize = 10) => {
  return fetch(
    '/user.ashx',
    {
      Name: name,
      PageIndex: pageIndex,
      PageCount: pageSize,
      work: 'getfiletypelist'
    }
  )
}
// 在线学习资料
let _list = (name = '', type, pageIndex = 0, pageSize = 10) => {
  return fetch(
    '/user.ashx',
    {
      Name: name,
      FileType: type,
      PageIndex: pageIndex,
      PageCount: pageSize,
      work: 'getfilelist'
    }
  )
}
export {
  _typelist,
  _list
}